// pages/Warning/Warning.js
// pages/map1/map1.js
var app = getApp()
Page({
    /**
     * 页面的初始数据
     */
    data: {
        longitude: null,
        latitude: null,
        lowDanger:0,
        mediumDanger:0,
        bigDanger:0,
        bigerDanger:0,
        total:0,
        circles:[
            {
                latitude:34.60395087193467,
                longitude:119.22108530185301,
                color:"#ee9a4f",
                radius:2000,
                fillColor:"#ee9a4f6A"
            }
        ],
        markers: [{
            id:1,
            latitude:34.60395087193467,
            longitude:119.22108530185301,
            title:"贵州茅台股份有限公司",
            iconPath:"../../images/dangers/bigDanger.png",
            width:"48rpx",
            height:"66rpx",
            callout:{
                content:"贵州茅台股份有限公司",
                borderRadius:5,
                display:'ALWAYS',
                padding:10
            }
  
        }]
    },
    getMarkers(){
        //初始化相关变量
        var cicle = {
            radius:2000
        }
        var marker = {
            width:"48rpx",
            height:"66rpx",
            callout:{
                content:"",
                borderRadius:5,
                display:'BYCLICK',
                padding:10
            }
        }
        //加载
        wx.showLoading({
          title: '加载中',
          mask:true
        })
        //请求
        wx.request({
          url: app.globalData.ipAddress+'/abc',
          method:"GET",
          success:(r)=>{

          },
          fail:(r)=>{

          }
        })
    },
    onLoad() {
        //this.getMarkers();


    }
})